package com.isoft.game.sys.user.dao;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import tk.mybatis.mapper.common.Mapper;

import com.isoft.game.sys.user.entity.User;

@Repository
public interface UserRepository extends Mapper<User> {

	@Select("select * from s_user where DEL_FLAG='0' and FLAG='1' and username = #{username}")
	@ResultMap(value = "BaseResultMap" )
    User queryUserByName(User user);
}
